home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 1924 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: m.hendry@dial.pipex.com (Mathew Hendry)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: UUencode
  5. Date: Tue, 6 Feb 96 17:28:01
  6. Organization: Private node.
  7. Distribution: world
  8. Message-ID: <19960206.455DA0.F5E5@an040.du.pipex.com>
  9. References: <4edic0$auv@kdcol.kdcol.com> <19960128.4183E0.B91B@ak102.du.pipex.com> <p3KrAjf.anderson4@delphi.com> <4f5g90$bc@rkadw1.ple.af.mil>
  10. NNTP-Posting-Host: an040.du.pipex.com
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. Durwood Thrasher (thrasher@rkami2.ple.af.mil) wrote:
  14. : I think it's a little more complicated than that.  The format I have to use to
  15. : get uuencode to work is:
  16. :     uuencode <myfile >newfilename myfile
  17. : (Note that myfile appears twice.)
  18.  
  19. In that case, one instance of "myfile" is redundant. What exactly do each of
  20. the two instances _mean_?
  21.  
  22. The correct format depends on what version of uuencode you are using. Some
  23. take input from stdin, some from a file specified as a command line argument.
  24. Some send output to stdout, some to a file specified as a command line
  25. argument.
  26.  
  27. So, there are four possible combinations:
  28.  
  29. uuencode <myfile >outfile (input from stdin, output to stdout)
  30. uuencode <myfile outfile  (input from stdin, output to file)
  31. uuencode myfile >outfile  (input from file,  output to stdout)
  32. uuencode myfile outfile   (input from file,  output to file)
  33.  
  34. The first method is, I think, the standard UNIX usage. It's certainly the most
  35. flexible, and makes the command useful when using pipes.
  36.  
  37. I don't think I've ever seen the second method used (it's rather an odd way of
  38. going about things), but the last two are fairly common.
  39.  
  40. -- Mat.
  41.